#include "OutputPin.h"
#include "InputPin.h"

namespace cm_media
{
    OutputPin::OutputPin():Pin(PinDirectionOutput)
    {

    }

    int OutputPin::push(ByteBuffer* p_data) 
    {
        if( m_peer ){
            ((InputPin*)m_peer)->receive(p_data);
            return CmMediaSucess;
        }else{
            return CmMediaFail;
        }
    }
}